<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <input type="text"><input type="text"><input type="text">
</body>
<script type="text/javascript">
    onload = function () {
        var ipt = document.getElementsByTagName('input');
        var arr = [ipt[0], ipt[1], ipt[2]];
        // arr.forEach(e => {
        //     alert(e);
        // });


    }
</script>
</html>